package spring.command;

import android.view.View;
import android.widget.Button;
import spring.command.base.ICommander;

public class ViewCommander implements ICommander{
	private View mView;
	
	public ViewCommander(View view){
		this.mView = view;
	}
	
	@Override
	public Integer getId() {
		return mView.getId();
	}

	@Override
	public int isVisibility() {
		return mView.getVisibility();
	}

	@Override
	public void setVisibility(int nVisible) {
		mView.setVisibility(nVisible);
	}

	@Override
	public String getText() {
		Button button = (Button)mView;
		return button.getText().toString();
	}

}
